<%@ attribute name="type" required="false" description="请求的类型:'POST' 或 'GET'"%>
<%@ attribute name="url" required="true" description="发送到的URL地址" %>
<%@ attribute name="datatype" required="false" description="返回的数据类型:xml、html、script、json"%>
<%@ attribute name="data" required="false" description="数据"%>
<%@ attribute name="async" required="false" description="是否以异步的方式发送"%>
<%@ attribute name="success" required="false" description="当请求成功时调用的函数"%>
<%@ attribute name="processdata" required="false" description="自动处理返回的数据为字符串:在默认的情况下，如果data选项传进的数据是一个对象而不是字符串，将会自动地被处理和转换成一个查询字符串"%>
<%@ attribute name="complete" required="false" description="当请求完成时调用的函数"%>
<%@ attribute name="beforesend" required="false" description="当请求前时调用的函数:有个一个参数，根$.ajax里的beforeSend参数一样。"%>
<%@ attribute name="buttons" required="false" description="你点提交的按钮(组)jQuery对象:当你触发了ajax校验，buttons里对应的按钮（组）就会灰掉，一直等待服务器返回数据为止"%>
<%@ attribute name="error" required="false" description="当请求失败时调用的函数:你可以自己定义这个错误，在error里自动打出。为空者不显示。"%>
.ajaxValidator({
	type:"${empty type?"get":type}",
    url : "${url}",
    datatype :"${empty datatype?"html":datatype}",
    async:${empty async?"true":async},
    ${empty data?"":"data:\""}${empty data?"":data}${empty data?"":"\","}
    success :${empty success?"null":success},
    processdata:${empty processdata?"true":processdata},
    complete:${empty complete?"null":complete},
    beforesend:${empty beforesend?"null":beforesend},
    buttons:${empty buttons?"null":buttons},
    error:${empty error?"":error}
    })